/* css reset start */

html,
body,
div,
span,
iframe,
h1,
h2,
h3,
p,
blockquote,
q,
a,
abbr,
address,
em,
img,
strong,
ul,
ol,
li,
form,
input,
label,
select,
strong,
textarea,
button,
footer,
header,
nav {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    vertical-align: baseline;
    border: 0;
}

footer,
nav,
header {
    display: block;
}


/* div如果要设置100%， 必须把 html，body设置100%， 这样div才能继承 start */

html,
body {
    height: 100%;
}


/* div如果要设置100%， 必须把 html，body设置100%， 这样div才能继承 end */

html {
    font-size: 62.5%;
}

body {
    font-family: 'Hiragino Sans GB', '华文细黑', 'STHeiti', '微软雅黑', 'Microsoft YaHei', SimHei, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1;
    width: 7.2rem;
    max-width: 640px;
    margin: 0 auto;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    /* 清除webkit点击的时候出现的边框 */
}

em {
    font-style: normal;
}

a {
    text-decoration: none;
}

:focus,
input,
select,
textarea {
    outline: none;
}

textarea {
    resize: none;
}

img {
    display: block;
    max-width: 100%;
}

input[type='submit'],
label,
select {
    cursor: pointer;
}

li {
    list-style: none;
}

table {
    border-spacing: 0;
    border-collapse: collapse;
}

input {
    -webkit-appearance: none;
}

::-webkit-inner-spin-button {
    -webkit-appearance: none;
    /* input[number] 上下小箭头按钮， 去掉 */
}

::-webkit-resizer {
    display: none;
    /* 隐藏 textarea 右下角图标 */
}

::-webkit-input-placeholder {
    color: #d5d2d2;
    /* placeholder 颜色 */
}

.ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    /* 多出的显示省略号 */
}

.br {
    word-wrap: break-word;
    word-break: break-all;
    /* 强制换行 */
}

.alert-bg {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    background: rgba(0, 0, 0, .6);
}


/* input[type="checkbox"] { -webkit-appearance: none; background: #ccc; } 更改checkbox按钮样式 */


/* input[type="checkbox"]:checked { -webkit-appearance: none; background: red; } 更改checkbox选中按钮样式 */

.fix:after {
    display: table;
    clear: both;
    content: '';
}


/* css reset end */